<div class="animated fadeInRight ecommerce">
    <div class="row">
        <div class="col-md-2 padding-r-0">
            <div class=" border-radius ">
                <div class="margin-xs-r  treeview attendance-staff">
                    <ul class="list-group text-center border-radius">
                        <!--  -->
                        <li class="list-group-item node-orgTree " v-for="(item,index) in orderManageInfo.apps"
                            :key="index" @click="swatchApp(item)"
                            :class="{'vc-node-selected':orderManageInfo.conditions.appId == item.appId}">
                            {{item.name}}
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-10">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox ">
                        <div class="ibox-title">
                            <h5>
                                <vc:i18n name="查询条件" namespace="orderManage"></vc:i18n>
                            </h5>
                            <div class="ibox-tools" style="top:10px;">

                            </div>
                        </div>
                        <div class="ibox-content">
                            <div class="row">
                                <div class="col-sm-2">
                                    <div class="form-group">
                                        <input type="text" :placeholder="vc.i18n('订单编号','orderManage')"
                                            v-model="orderManageInfo.conditions.oId" class=" form-control">
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <div class="form-group">
                                        <input type="text" placeholder="外部编号"
                                            v-model="orderManageInfo.conditions.extTransactionId" class=" form-control">
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <div class="form-group">
                                        <input type="text" placeholder="业务编号" v-model="orderManageInfo.conditions.bId"
                                            class=" form-control">
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <div class="form-group">
                                        <input type="text" placeholder="受理开始时间"
                                            v-model="orderManageInfo.conditions.startTime"
                                            class=" form-control startTime">
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <div class="form-group">
                                        <input type="text" placeholder="受理结束时间"
                                            v-model="orderManageInfo.conditions.endTime" class=" form-control endTime">
                                    </div>
                                </div>

                                <div class="col-sm-2">
                                    <button type="button" class="btn btn-primary btn-sm"
                                        v-on:click="_queryOrdersMethod()">
                                        <i class="fa fa-search"></i> <span>
                                            <vc:i18n name="查询" namespace="orderManage"></vc:i18n>
                                        </span>
                                    </button>
                                </div>
                            </div>
                            <div class="row">

                                <div class="col-sm-2">
                                    <div class="form-group">
                                        <input type="text" placeholder="操作人"
                                            v-model="orderManageInfo.conditions.staffNameLike" class=" form-control">
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <div class="form-group">
                                        <input type="text" placeholder="业务名称"
                                            v-model="orderManageInfo.conditions.businessTypeNameLike" class=" form-control">
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox">
                        <div class="ibox-title">
                            <h5>
                                <vc:i18n name="受理单" namespace="orderManage"></vc:i18n>
                            </h5>
                            <div class="ibox-tools" style="top:10px;"></div>
                        </div>
                        <div class="ibox-content">

                            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                                <thead>
                                    <tr>
                                        <th class="text-center">
                                            <vc:i18n name="应用名称" namespace="orderManage"></vc:i18n>
                                        </th>
                                        <th class="text-center">
                                            <div>
                                                <vc:i18n name="订单编号(oId)" namespace="orderManage"></vc:i18n>
                                            </div>
                                            <div>
                                                <vc:i18n name="(外部编号)" namespace="orderManage"></vc:i18n>
                                            </div>
                                        </th>
                                        <th class="text-center">
                                            <div>
                                                <vc:i18n name="业务名称" namespace="orderManage"></vc:i18n>
                                            </div>
                                            <div>
                                                <vc:i18n name="(业务编码)" namespace="orderManage"></vc:i18n>
                                            </div>
                                        </th>
                                       
                                        <th class="text-center">
                                            <vc:i18n name="业务编号(bId)" namespace="orderManage"></vc:i18n>
                                        </th>

                                        <th class="text-center">
                                            <vc:i18n name="受理时间" namespace="orderManage"></vc:i18n>
                                        </th>
                                        <th class="text-center">
                                            <vc:i18n name="受理动作" namespace="orderManage"></vc:i18n>
                                        </th>
                                        <th class="text-center">
                                            <vc:i18n name="受理表" namespace="orderManage"></vc:i18n>
                                        </th>
                                        <th class="text-center">
                                            <vc:i18n name="操作人" namespace="orderManage"></vc:i18n>
                                        </th>
                                        <th class="text-center">
                                            <vc:i18n name="状态" namespace="orderManage"></vc:i18n>
                                        </th>
                                        <th class="text-center">
                                            <vc:i18n name="操作" namespace="orderManage"></vc:i18n>
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr v-for="order in orderManageInfo.orderDataVos">
                                        <td class="text-center">{{order.appName}}</td>
                                        <td class="text-center">{{order.oId}}</br>({{order.extTransactionId}}) </td>
                                        <td class="text-center">{{order.name}}</br>({{order.businessTypeCd}})</td>
                                       
                                        <td class="text-center">{{order.bId || '-'}}</td>
                                        <td class="text-center">{{order.createTime}}</td>
                                        <td class="text-center" v-if="order.action == 'ADD'">添加</td>
                                        <td class="text-center" v-else-if="order.action == 'MOD'">修改</td>
                                        <td class="text-center" v-else-if="order.action == 'DEL'">删除</td>
                                        <td class="text-center" v-else>-</td>
                                        <td class="text-center">{{order.actionObj || '-'}}</td>
                                        <td class="text-center">{{order.userName}}</td>
                                        <td class="text-center">{{order.statusCd == 'C'?'完成':'失败'}}</td>
                                        <td class="text-center">
                                            <div v-if="order.bId">
                                                <button class="btn-white btn btn-xs" v-on:click="_showUnitemLog(order)">
                                                    <vc:i18n name="日志" namespace="orderManage"></vc:i18n>
                                                </button>
                                            </div>
                                            <div v-else>无日志</div>
                                        </td>

                                    </tr>
                                </tbody>
                                <tfoot>
                                    <tr>
                                        <td colspan="7">
                                            <ul class="pagination float-right"></ul>
                                        </td>
                                    </tr>
                                </tfoot>
                            </table>
                            <!-- 分页 -->
                            <vc:create path="frame/pagination"></vc:create>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <vc:create path="admin/viewUnItemLog"></vc:create>
</div>